package org.jeecg.modules.xl.store.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.xl.store.entity.XlCustomerMystore;
import org.jeecg.modules.xl.store.entity.XlCustomerStoreInfo;

/**
 * @Description: 客户门店工作人员
 * @Author: jeecg-boot
 * @Date:   2024-10-24
 * @Version: V1.0
 */
public interface XlCustomerMystoreMapper extends BaseMapper<XlCustomerMystore> {

	/**
	 * 通过主表id删除子表数据
	 *
	 * @param mainId 主表id
	 * @return boolean
	 */
	public boolean deleteByMainId(@Param("mainId") String mainId);

  /**
   * 通过主表id查询子表数据
   *
   * @param mainId 主表id
   * @return List<XlCustomerMystore>
   */
	public List<XlCustomerMystore> selectByMainId(@Param("mainId") String mainId);


	public List<XlCustomerStoreInfo> selectStoresByUserId(@Param("userid") String userid);

	List<XlCustomerStoreInfo> selectStoresByUserId2(@Param(Constants.WRAPPER) Wrapper<XlCustomerStoreInfo> wrapper);
}
